
#ifndef CALCULATOR_H
#define CALCULATOR_H

typedef struct Calculator_Fld Calculator_Fld;
typedef struct Calculator Calculator;

struct Calculator
{
	Calculator_Fld *pFld;

	void(*Input)(Calculator *pSelf, double dblOperandLeft, double dblOperandRight);
	void(*Add)(Calculator *pSelf);
	void(*Substract)(Calculator *pSelf);
	void(*Output)(Calculator *pSelf);
};

Calculator *Calculator_New();
void Calculator_Free(Calculator **ppSelf);

#endif // !CALCULATOR_H
